package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 发货记录
 * </p>
 *
 * @author LGP
 * @since 2019-08-27
 */
@TableName("bdth_sendmk")
public class Sendmk implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合同编号
     */
    private String ctcode;
    /**
     * 合同名称
     */
    private String ctname;
    private String productname;
    private String producttype;
    private BigDecimal sendsum;
    private String senduser;
    private String receivename;
    private String sendaddress;
    /**
     * 发货单号
     */
    private String sendno;
    /**
     * 发货时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date crtime;

    /**
     * 操作人ID
     */
    private Integer opid;
    /**
     * 操作人
     */
    private String opname;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCtcode() {
        return ctcode;
    }

    public void setCtcode(String ctcode) {
        this.ctcode = ctcode;
    }

    public String getCtname() {
        return ctname;
    }

    public void setCtname(String ctname) {
        this.ctname = ctname;
    }

    public String getSendno() {
        return sendno;
    }

    public void setSendno(String sendno) {
        this.sendno = sendno;
    }

    public Date getCrtime() {
        return crtime;
    }

    public void setCrtime(Date crtime) {
        this.crtime = crtime;
    }

    public Integer getOpid() {
        return opid;
    }

    public void setOpid(Integer opid) {
        this.opid = opid;
    }

    public String getOpname() {
        return opname;
    }

    public void setOpname(String opname) {
        this.opname = opname;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getProducttype() {
        return producttype;
    }

    public void setProducttype(String producttype) {
        this.producttype = producttype;
    }

    public BigDecimal getSendsum() {
        return sendsum;
    }

    public void setSendsum(BigDecimal sendsum) {
        this.sendsum = sendsum;
    }

    public String getReceivename() {
        return receivename;
    }

    public void setReceivename(String receivename) {
        this.receivename = receivename;
    }

    public String getSendaddress() {
        return sendaddress;
    }

    public void setSendaddress(String sendaddress) {
        this.sendaddress = sendaddress;
    }

    public String getSenduser() {
        return senduser;
    }

    public void setSenduser(String senduser) {
        this.senduser = senduser;
    }

    @Override
    public String toString() {
        return "Sendmk{" +
                "id=" + id +
                ", ctcode='" + ctcode + '\'' +
                ", ctname='" + ctname + '\'' +
                ", productname='" + productname + '\'' +
                ", producttype='" + producttype + '\'' +
                ", sendsum=" + sendsum +
                ", senduser='" + senduser + '\'' +
                ", receivename='" + receivename + '\'' +
                ", sendaddress='" + sendaddress + '\'' +
                ", sendno='" + sendno + '\'' +
                ", crtime=" + crtime +
                ", opid=" + opid +
                ", opname='" + opname + '\'' +
                '}';
    }
}
